import { Component, OnInit } from '@angular/core';
import { GlobalService } from './global.service';
import { isNullOrUndefined } from 'util';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.less']
})

export class AppComponent implements OnInit {

  names = ['Mr. IQ', '   ', '  Bombasto  '];

  constructor(private globalService: GlobalService) {
    this.globalService.isLogin = !isNullOrUndefined(localStorage.getItem('info'));
  }

  ngOnInit() {
  }
}
